package com.pz.cloud.framework.business.fundApply.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pz.cloud.framework.base.model.WorkflowEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

@Data
@TableName("fund_apply")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="经费申请", description="经费申请")
public class FundApply extends WorkflowEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    private String id;

    @Excel(name = "申请人id", width = 15)
    @ApiModelProperty("申请人id")
    private String applierId;

    @Excel(name = "申请理由", width = 15)
    @ApiModelProperty("申请理由")
    private String reason;

    @Excel(name = "申请金额", width = 15)
    @ApiModelProperty("申请金额")
    private BigDecimal applyAmount;

    @Excel(name = "图片", width = 15)
    @ApiModelProperty("图片")
    private String pics;

    @Excel(name = "附件", width = 15)
    @ApiModelProperty("附件")
    private String enclosures;

    @ApiModelProperty("姓名")
    @TableField(exist = false)
    private String realname;

    @ApiModelProperty(value = "指导老师",required = true)
    @Excel(name = "指导老师", width = 15)
    private String instructor;

    @ApiModelProperty(value = "指导老师id",required = true)
    @NotEmpty
    private String instructorId;
}
